<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsp/common/head.jsp"%>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">

<div class="right">
        <div class="location">
            <strong>当前位置:</strong>
            <span>领养登记页面 >> 领养登记新增页面</span>
        </div>
        <div class="supplierAdd">
          <form id="storageRecordForm" name="storageRecordForm" method="post" action="${pageContext.request.contextPath }/sys/adoptanimal/add">

                <!--div的class 为error是验证错误，ok是验证成功-->
                <div class="">
                    <label for="userId">领养人：</label>
                    <select name="userId" id="userId">
                        <c:if test="${users != null }">
                            <option value="">--全部--</option>
                            <c:forEach var="item" items="${users}">
                                <option
                                        value="${item.id}">${item.username}</option>
                            </c:forEach>
                        </c:if>
                    </select>
                </div>
                <div>
                    <label for="petId">被领养的宠物：</label>
                    <select name="petId" id="petId">
                        <c:if test="${pets != null }">
                            <option value="">--全部--</option>
                            <c:forEach var="item" items="${pets}">
                                <option value="${item.id}">${item.petName}</option>
                            </c:forEach>
                        </c:if>
                    </select>
					<font color="red"></font>
                </div>
                <div>
                    <label for="adoptTime">领养日期：</label>
                    <input type="date" name="adoptTime" id="adoptTime"  >
					<font color="red"></font>
                </div>
                <div>
                    <label for="agreeTime">同意领养时间：</label>
                    <input type="date" name="agreeTime" id="agreeTime"  >
					<font color="red"></font>
                </div>
              <div>
                  <label for="leaveTime">领走宠物时间：</label>
                  <input type="date" name="leaveTime" id="leaveTime"  >
                  <font color="red"></font>
              </div>
                <div class="supplierAddBtn">
                  <input type="button" name="save" id="save" value="保存">
				  <input type="button" id="back" name="back" value="返回" >
              	</div>
            </form>
        </div>

    </div>
</section>

<%@include file="/WEB-INF/jsp/common/foot.jsp" %>
<script type="text/javascript" src="${pageContext.request.contextPath }/statics/js/adoptanimal/add.js"></script>